package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_PreAllocatePublishItem", catalog="Id")
public class TccPreAllocatePublishItem extends BaseEntity<TccPreAllocatePublishItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="PublishVgsbm", nameJava="publishVgsbm", typeDataBase="varchar")
	private String publishVgsbm;
	@YsField(nameDataBase="PublishAmountBySon", nameJava="publishAmountBySon", typeDataBase="decimal")
	private BigDecimal publishAmountBySon;
	@YsField(nameDataBase="PublishAmountByReality", nameJava="publishAmountByReality", typeDataBase="decimal")
	private BigDecimal publishAmountByReality;
	@YsField(nameDataBase="FromIsShow", nameJava="fromIsShow", typeDataBase="tinyint")
	private Integer fromIsShow;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccPreAllocatePublishItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccPreAllocatePublishItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getPublishVgsbm() {
		return publishVgsbm;
	}
	public TccPreAllocatePublishItem setPublishVgsbm(String publishVgsbm) {
		this.publishVgsbm = publishVgsbm;
		return this;
	}
	public BigDecimal getPublishAmountBySon() {
		return publishAmountBySon;
	}
	public TccPreAllocatePublishItem setPublishAmountBySon(BigDecimal publishAmountBySon) {
		this.publishAmountBySon = publishAmountBySon;
		return this;
	}
	public BigDecimal getPublishAmountByReality() {
		return publishAmountByReality;
	}
	public TccPreAllocatePublishItem setPublishAmountByReality(BigDecimal publishAmountByReality) {
		this.publishAmountByReality = publishAmountByReality;
		return this;
	}
	public Integer getFromIsShow() {
		return fromIsShow;
	}
	public TccPreAllocatePublishItem setFromIsShow(Integer fromIsShow) {
		this.fromIsShow = fromIsShow;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccPreAllocatePublishItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccPreAllocatePublishItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccPreAllocatePublishItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccPreAllocatePublishItem tccPreAllocatePublishItem(
		String pbid,
		String publishVgsbm,
		BigDecimal publishAmountBySon,
		BigDecimal publishAmountByReality,
		Integer fromIsShow,
		Integer status
			) {
		TccPreAllocatePublishItem entity = new TccPreAllocatePublishItem();
		entity.setPbid(pbid);
		entity.setPublishVgsbm(publishVgsbm);
		entity.setPublishAmountBySon(publishAmountBySon);
		entity.setPublishAmountByReality(publishAmountByReality);
		entity.setFromIsShow(fromIsShow);
		entity.setStatus(status);
		return entity;
	}
}